import sys
from Database_qt_auto import Ui_TabWidget
from PyQt4 import Qt

class DatabaseApp (Qt.QApplication):

    def __init__(self, args):
        """Constructor for the database app"""
        Qt.QApplication.__init__(self, args)
        self.addWidgits()
        self.exec_()

    def addWidgits(self):
        self.hellobutton = Qt.QPushButton("Say 'Hello World!",None)
        self.connect(self.hellobutton, Qt.SIGNAL("clicked()"), self.slotSayHello)
        self.hellobutton.show()

    def slotSayHello(self):
        print "Hello, World!"



if __name__ == "__main__":
    app = DatabaseApp(sys.argv)
